import request from "@/utils/request";

export function listTask(query){
  return request({
    url: '/task/list',
    method: 'get',
    params: query
  })
}


export function getTask(id){
  return request({
    url: '/task/' + id,
    method: 'get'
  })
}


export function randomTaskNo(id){
  return request({
    url: '/task/randomTaskNo',
    method: 'get'
  })
}

